<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yanchao
  Date: 2021/11/7
  Time: 下午8:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>贷款申请 - 助学贷款系统</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css">
    <link rel="stylesheet" href="./static/admin/css/style.css">
    <script src="./static/layui/layui.js"></script>
    <script src="./static/js/jquery-3.3.1.min.js"></script>
    <script src="./static/js/vue.min.js"></script>
    <script src="./static/admin/js/userConfig.js"></script>
    <c:if test="${sessionScope.user.status == 0}"><script language="javascript">alert('您的账号已被封禁，暂时无法使用此功能，请在账号维护中申请解封！');window.location.href="userInfo.do";</script></c:if>
    <c:if test="${sessionScope.user.status == 2}"><script language="javascript">alert('您的账号解封申请已提交，暂时无法使用此功能，请等待管理员审核！');window.location.href="userInfo.do";</script></c:if>
</head>
<body class="p20">



<fieldset class="layui-elem-field layui-field-title">
    <legend>贷款申请信息填写</legend>
</fieldset>
<%
    Date date = new Date();     //获取日期对象
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); //设置日期格式
    String today = df.format(date); //获取当前系统日期
%>

<form class="layui-form " method="post" action="/userDoApply.do?userid=${sessionScope.user.id}" >
    <div class="layui-form-item">
        <label class="layui-form-label">项目名称</label>
        <div class="layui-input-block">
            <input type="text" name="project" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">人均月收入</label>
        <div class="layui-input-block">
            <input type="text" name="pcmhi" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">人均年收入</label>
        <div class="layui-input-block">
            <input type="text" name="pcahi" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">困难等级</label>
        <div class="layui-input-block">
            <select name="level">
                <option>请选择</option>
                <option value="特别困难">特别困难</option>
                <option value="比较困难">比较困难</option>
                <option value="一般困难">一般困难</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">申请金额</label>
        <div class="layui-input-block">
            <input type="text" name="amount" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">金额大写</label>
        <div class="layui-input-block">
            <input type="text" name="amountcn" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">申请原因</label>
        <div class="layui-input-block">
            <input type="texteara" name="reason" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">申请期限</label>
        <div class="layui-input-block">
            <select name="deadline">
                <option>请选择</option>
                <option value="6个月">6个月</option>
                <option value="12个月">12个月</option>
                <option value="24个月">24个月</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭成员1:</label>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="familyname1" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">称谓</label>
        <div class="layui-input-block">
            <input type="text" name="familycall1" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-block">
            <input type="text" name="familyage1" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作单位</label>
        <div class="layui-input-block">
            <input type="text" name="familyunit1" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="familyphone1" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭成员2:</label>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="familyname2" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">称谓</label>
        <div class="layui-input-block">
            <input type="text" name="familycall2" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-block">
            <input type="text" name="familyage2" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作单位</label>
        <div class="layui-input-block">
            <input type="text" name="familyunit2" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="familyphone2" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">签字确认:</label>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">申请人签字</label>
        <div class="layui-input-block">
            <input type="text" name="signature" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="text-align: center;">
            <button class="layui-btn" type="submit">申请提交</button>
        </div>
    </div>
</form>



<script src="./static/admin/js/script.js"></script>
</body>
</html>
